package com.xhblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author pengyouhong
 * create 2022/5/17 18:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "xh_blog.ms_category")
public class Category implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "avatar")
    private String avatar;

    @TableField(value = "category_name")
    private String categoryName;

    @TableField(value = "description")
    private String description;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_AVATAR = "avatar";

    public static final String COL_CATEGORY_NAME = "category_name";

    public static final String COL_DESCRIPTION = "description";
}